package com.wy.demo.jsonFormat.fastJson;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User1 {
    private Long id;
    private String name;
    
    @JSONField(name = "email_address")
    private String email;
    
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    
    private List<String> hobbies;
} 